/*
 * Asteroid.java
 *
 * Created on 27. April 2007, 20:57
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package de.tor.obj.impl;

import com.golden.gamedev.object.sprite.VolatileSprite;
import de.tor.loaders.Level;
import de.tor.obj.*;
import de.tor.obj.action.impl.LinearMovement;
import java.awt.image.BufferedImage;

/**
 *
 * @author Charon
 */
public class Asteroid extends Enemy{
    
    private VolatileSprite dest;
    private int iHealth = 100;
    
    /** Creates a new instance of Asteroid */
    public Asteroid(Level pParent, BufferedImage[] pView) {
        super(pParent, pView);
        setVerticalSpeed(.1);
    }
    
    public int getHealth() {
        return iHealth;
    }
    
    public int getCollisionDamage(){
        return 50;
    }
    
    public void doDamage(int v){
        iHealth -= v;
    }
    
    public boolean isDestructable() {
        return true;
    }
    
    public void initObject() {
    }
    
    public void updateTorridityGameObject(long elapsedTime) {
        
    }
}
